package libsys.general;

import libsys.general.LIBSYSSystem;

public class FrameDesigner
{
		LIBSYSSystem LibrarySystem;
		
		public FrameDesigner(LIBSYSSystem LibrarySystem)
		{
				this.LibrarySystem = LibrarySystem;
		}
		
		public void designCalculatorFrame()
		{
				LibrarySystem.FrameList.CalculatorFrame.setDefaultCloseOperation(javax.swing.JFrame.DO_NOTHING_ON_CLOSE);
				LibrarySystem.FrameList.CalculatorFrame.setResizable(false);
				
				javax.swing.GroupLayout main_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.calculatorFrameItems.main_panel);
                                LibrarySystem.FrameItems.calculatorFrameItems.main_panel.setLayout(main_panelLayout);
                                main_panelLayout.setHorizontalGroup(
                                                main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                .addContainerGap()
                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.four_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.five_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.six_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.seven_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.eight_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.nine_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.zero_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.one_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.point_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.equal_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.two_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.three_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.multiply_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.minus_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.plus_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.divide_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                                                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, main_panelLayout.createSequentialGroup()
                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.redundant_btn, 0, 0, Short.MAX_VALUE)
                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.openbrace_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.closebrace_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.percentage_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                                                                .addGap(255, 255, 255)
                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.braceopen_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.braceclose_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                .addGap(18, 18, 18)
                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.backspace_btn)
                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.clear_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.result_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                                                .addContainerGap())
                                );
                                main_panelLayout.setVerticalGroup(
                                                main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, main_panelLayout.createSequentialGroup()
                                                                .addContainerGap()
                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.result_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.backspace_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.clear_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.braceopen_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.braceclose_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                .addGap(149, 149, 149))
                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.percentage_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.openbrace_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.closebrace_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.redundant_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.seven_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.eight_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.nine_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.divide_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.four_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.five_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.six_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.multiply_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.one_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.two_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.three_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.minus_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.zero_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.point_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.equal_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.plus_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                .addContainerGap())))
                                );

                                javax.swing.GroupLayout layout = new javax.swing.GroupLayout(LibrarySystem.FrameList.CalculatorFrame.getContentPane());
                                LibrarySystem.FrameList.CalculatorFrame.getContentPane().setLayout(layout);
                                layout.setHorizontalGroup(
                                                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.main_panel, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
                                );
                                layout.setVerticalGroup(
                                                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.calculatorFrameItems.main_panel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                );
                                LibrarySystem.FrameList.CalculatorFrame.pack();
		}
		
		public void designSettingsFrame()
		{
				LibrarySystem.FrameList.SettingsFrame.setDefaultCloseOperation(javax.swing.JFrame.DO_NOTHING_ON_CLOSE);
				LibrarySystem.FrameList.SettingsFrame.setResizable(false);
				
				javax.swing.GroupLayout settingstree_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.settingsFrameItems.settingstree_panel);
                                LibrarySystem.FrameItems.settingsFrameItems.settingstree_panel.setLayout(settingstree_panelLayout);
                                settingstree_panelLayout.setHorizontalGroup(
                                                settingstree_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.settingsFrameItems.settingstree_scrollpane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)
                                );
                                settingstree_panelLayout.setVerticalGroup(
                                                settingstree_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.settingsFrameItems.settingstree_scrollpane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
                                );

                                LibrarySystem.FrameItems.settingsFrameItems.tab_panel.setBackground(new java.awt.Color(204, 204, 255));

                                javax.swing.GroupLayout tab_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.settingsFrameItems.tab_panel);
                                LibrarySystem.FrameItems.settingsFrameItems.tab_panel.setLayout(tab_panelLayout);
                                tab_panelLayout.setHorizontalGroup(
                                                tab_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGap(0, 420, Short.MAX_VALUE)
                                );
                                tab_panelLayout.setVerticalGroup(
                                                tab_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGap(0, 384, Short.MAX_VALUE)
                                );

                                javax.swing.GroupLayout main_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.settingsFrameItems.main_panel);
                                LibrarySystem.FrameItems.settingsFrameItems.main_panel.setLayout(main_panelLayout);
                                main_panelLayout.setHorizontalGroup(
                                                main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                .addContainerGap()
                                                                .addComponent(LibrarySystem.FrameItems.settingsFrameItems.settingstree_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addComponent(LibrarySystem.FrameItems.settingsFrameItems.tab_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                .addContainerGap())
                                );
                                main_panelLayout.setVerticalGroup(
                                                main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, main_panelLayout.createSequentialGroup()
                                                                .addContainerGap()
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                                                .addComponent(LibrarySystem.FrameItems.settingsFrameItems.tab_panel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                                .addComponent(LibrarySystem.FrameItems.settingsFrameItems.settingstree_panel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                                                .addContainerGap())
                                );

                                javax.swing.GroupLayout layout = new javax.swing.GroupLayout(LibrarySystem.FrameList.SettingsFrame.getContentPane());
                                LibrarySystem.FrameList.SettingsFrame.getContentPane().setLayout(layout);
                                layout.setHorizontalGroup(
                                                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.settingsFrameItems.main_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                );
                                layout.setVerticalGroup(
                                                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.settingsFrameItems.main_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                );

                                LibrarySystem.FrameList.SettingsFrame.pack();
		}
		
		public void designLoginFrame()
		{
				javax.swing.GroupLayout main_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.loginFrameItems.main_panel);
                                LibrarySystem.FrameItems.loginFrameItems.main_panel.setLayout(main_panelLayout);
                                main_panelLayout.setHorizontalGroup(
                                                main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                .addGap(94, 94, 94)
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.loginprompt_label, javax.swing.GroupLayout.PREFERRED_SIZE, 355, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.login_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.forgotpassword_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addGap(33, 33, 33)
                                                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.exit_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.password_label, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.username_label, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.password_txt)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.username_txt, javax.swing.GroupLayout.DEFAULT_SIZE, 318, Short.MAX_VALUE)))))
                                                                .addContainerGap(105, Short.MAX_VALUE))
                                );
                                main_panelLayout.setVerticalGroup(
                                                main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                .addGap(45, 45, 45)
                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.loginprompt_label)
                                                                .addGap(36, 36, 36)
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.username_label)
                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.username_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                .addGap(32, 32, 32)
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.password_label)
                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.password_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                .addGap(58, 58, 58)
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.login_btn)
                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.exit_btn)
                                                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.forgotpassword_btn))
                                                                .addContainerGap(50, Short.MAX_VALUE))
                                );

                                javax.swing.GroupLayout layout = new javax.swing.GroupLayout(LibrarySystem.FrameList.LoginFrame.getContentPane());
                                LibrarySystem.FrameList.LoginFrame.getContentPane().setLayout(layout);
                                layout.setHorizontalGroup(
                                                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.main_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                );
                                layout.setVerticalGroup(
                                                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.loginFrameItems.main_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                );

                                LibrarySystem.FrameList.LoginFrame.pack();
		}
		
		public void designNavigationFrame()
		{			
				javax.swing.GroupLayout tree_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.navigationFrameItems.tree_panel);
                                LibrarySystem.FrameItems.navigationFrameItems.tree_panel.setLayout(tree_panelLayout);
                                tree_panelLayout.setHorizontalGroup(
                                                tree_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.navigationFrameItems.tree_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)
                                );
                                tree_panelLayout.setVerticalGroup(
                                                tree_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.navigationFrameItems.tree_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 618, Short.MAX_VALUE)
                                );

                                LibrarySystem.FrameItems.navigationFrameItems.tab_panel.setBackground(new java.awt.Color(204, 204, 255));

                                javax.swing.GroupLayout tab_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.navigationFrameItems.tab_panel);
                                LibrarySystem.FrameItems.navigationFrameItems.tab_panel.setLayout(tab_panelLayout);
                                tab_panelLayout.setHorizontalGroup(
                                                tab_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGap(0, 633, Short.MAX_VALUE)
                                );
                                tab_panelLayout.setVerticalGroup(
                                                tab_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGap(0, 618, Short.MAX_VALUE)
                                );

                                javax.swing.GroupLayout main_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.navigationFrameItems.main_panel);
                                LibrarySystem.FrameItems.navigationFrameItems.main_panel.setLayout(main_panelLayout);
                                main_panelLayout.setHorizontalGroup(
                                                main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                .addContainerGap()
                                                                .addComponent(LibrarySystem.FrameItems.navigationFrameItems.tree_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addComponent(LibrarySystem.FrameItems.navigationFrameItems.tab_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                .addContainerGap())
                                );
                                main_panelLayout.setVerticalGroup(
                                                main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(main_panelLayout.createSequentialGroup()
                                                                .addGap(11, 11, 11)
                                                                .addGroup(main_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                .addComponent(LibrarySystem.FrameItems.navigationFrameItems.tab_panel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                                .addComponent(LibrarySystem.FrameItems.navigationFrameItems.tree_panel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                                                .addContainerGap())
                                );

                                LibrarySystem.FrameList.NavigationFrame.setJMenuBar(LibrarySystem.FrameItems.navigationFrameItems.MainMenuBar);		
				
                                javax.swing.GroupLayout layout = new javax.swing.GroupLayout(LibrarySystem.FrameList.NavigationFrame.getContentPane());
                                LibrarySystem.FrameList.NavigationFrame.getContentPane().setLayout(layout);
                                layout.setHorizontalGroup(
                                                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.navigationFrameItems.main_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                );
                                layout.setVerticalGroup(
                                                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.navigationFrameItems.main_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                );
				
                                LibrarySystem.FrameList.NavigationFrame.pack();
		}
}